/* 修改container的最大宽度为1280px，根据设计稿来走的 */
@media screen and (min-width:1280px) {
    .container {
        width: 1280px;
    }
}

body {
    background-color: #f5f5f5;
}

.container {
    background-color: #fff;
}


ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    color: #666;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* 左侧 */
/* header */
header {
    padding-left: 0 !important;
}

.logo {
    background-color: #429ad9;
}

.logo img {
    display: block;
    margin: 0 auto;
    /* width: 100%; */
    max-width: 100%;

}

.logo span {
    display: block;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 18px;
    color: #fff;
}

.nav {
    background-color: #eee;
    border-bottom: 1px solid #ccc;
}

.nav a {
    position: relative;
    display: block;
    height: 50px;
    line-height: 50px;
    padding-left: 30px;
    font-size: 16px;
}

.nav a:hover {
    background-color: #fff;
    font-size: #333;
}

.nav span {
    padding-right: 5px;
}

/* 中间 */
/* 新闻 */

/* 当我们进入 小屏幕和超小屏幕时，我们 nav 里面的 li 浮动起来并且宽幅为20% */
@media screen and (max-width:991.98px) {
    .nav li {
        float: left;
        width: 20%;
    }

    article {
        margin-top: 10px;
    }

    .banner img {
        margin-top: 20px !important;
    }
}

@media screen and (max-width:767.98px) {
    .nav li a {
        font-size: 14px;
    }

    /* 当屏幕处于最小宽度时（手机）就把news第一个小li宽度设为100%，剩余的li为50% */
    .news li:nth-child(1) {
        width: 100% !important;
    }

    .news li {
        width: 50% !important;
    }

    .publish h3 {
        font-size: 16px;
    }
}

@media screen and (min-width:992px) and (max-width:1199.98px) {
    .hot h4 {
        font-size: 17px !important;
    }
}


.news ul li {
    float: left;
    width: 25%;
    height: 128px;
    padding-right: 10px;
    margin-bottom: 10px;
}

.news li:nth-child(1) {
    width: 50%;
    height: 266px;
}

.carousel,
.carousel img {
    width: 100%;
    height: 266px !important;
}


.news .carousel-caption {
    font-size: 20px;
    line-height: 41px;
    padding: 0 10px;
}

.news li>a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.news li a img {
    width: 100%;
    height: 100%;
}

.news li a p,
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 41px;
    padding: 4px 10px;
    background-color: rgba(0, 0, 0, .5);
    margin-bottom: 0;
    font-size: 12px;
    color: #fff;
}

/* 发表 */
.publish {
    border-top: 1px solid #ccc;
}

.publish .row {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.pic {
    margin-top: 10px;

}

.pic img {
    width: 100%;
}

/* 右侧 */
.banner img {
    width: 100%;
}

.hot {
    display: block;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 0 20px 20px;
}

.hot span {
    border-radius: 0;
    margin-bottom: 20px;
}

.hot p {
    font-size: 12px;
}